<?php

namespace App\ModelFilters;


class SysDictTypeFilter extends BaseFilter
{
    /**
    * Related Models that have ModelFilters as well as the method on the ModelFilter
    * As [relationMethod => [input_key1, input_key2]].
    *
    * @var array
    */
    public $relations = [
//        'dictDatas' => ['is_default'],
    ];

    public function dict_name($dict_name){
        return $this->where('dict_name', 'LIKE', "%$dict_name%");
    }
    public function dict_type($dict_type){
        return $this->where('dict_type', 'LIKE', "%$dict_type%");

//        return $this->where('dict_type', $dict_type);
    }
    public function status($status){
        return $this->where('status', $status);
    }

}
